import Vue from "vue";
import VueRouter from "vue-router";
import HomeView from "../views/HomeView.vue";
import Exam from "../views/ExamView.vue"
import Compe from "../views/CompeView.vue"
import Bank from "../views/BankView.vue"
Vue.use(VueRouter);
import axios from "axios";
async function get(){
    let {data} = await axios.get(   )
}   
const routes = [{
        // redirect: "/",
        path: "/home",
        name: "home",
        component: HomeView,
        children:[
            {path:"",name:"quanbu",component:()=>import("@/views/Home/one")},
            {path:"one",name:"one",component:()=>import("@/views/Home/one")},
            {path:"two",name:"two",component:()=>import("@/views/Home/two")},
            {path:"three",name:"three",component:()=>import("@/views/Home/three")}
        ]
    },
    {
        path: "/Compe",
        name: "Compe",
        component: Compe,
    },
    {
        path: "/exam",
        name: "exam",
        component: Exam,
    },
    {
        path: "/Bank",
        name: "Bank",
        component: Bank
            // component: () =>
            //     import ( /* webpackChunkName: "about" */ "../views/BankView.vue"),
    },
];

const router = new VueRouter({
    routes,
});

export default router;